<template>
  <div class="page-content padding-top">
    <list class="von-checkbox">
      <item class="item-icon-right" v-for="(item,index) in name" @click.native="selectItem(item,index)">
        {{item}}<i :class="{'icon ion-ios-checkmark-empty assertive':ind == index}"></i>
      </item>
    </list>
  </div>
</template>
<script>
  import { bus } from 'bus.js'
  export default {
    data() {
      return {
        name:['汽油','柴油','混合动力'],
        ind:null,
      }
    },
    methods: {
      selectItem(a,i){
        this.ind = i;
        bus.$emit('carFuel', a);
      }
    }
  }
</script>
